<?php

namespace App\AppContext;

use Illuminate\Support\Facades\Cache;

class Console extends Base
{
    private $_cache = [];

    function __construct()
    {

    }

    function appId(): int
    {
        return 2;
    }

    function appName(): string
    {
        return 'API';
    }

    function all(): array
    {
        return $this->_cache;
    }

    function save(array $value): void
    {
        $this->_cache = $value;
    }

    function getToken(): string
    {
        return $this->token;
    }

    function destroy(): void
    {
        $this->_cache = [];
    }

    private $token;
}